import{UserContextProvider,useUserContextState}from'../component/UserApp/UserContext'
  const UserApp=()=>{
     return(
        <UserContextProvider>
        <Page />
      </UserContextProvider>
     )
}

const Page=()=>{
    const user= useUserContextState()
    console.log(user)
    if(user?.login?.username){
        return<p>您已经登陆{user.login.username}
        <img src={user.picture.large}  alt=''/>
        </p>

    }else{
    return<p>你还没有登陆</p>
    }
  
}

export default UserApp